import request from '@/utils/request'

// 查询上门费设置列表
export function listSettingOnsiteFee(query) {
  return request({
    url: '/vanger/settingOnsiteFee/list',
    method: 'get',
    params: query
  })
}

// 查询上门费设置列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/settingOnsiteFee/listUnion',
    method: 'get',
    params: query
  })
}


// 查询上门费设置详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/settingOnsiteFee/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询上门费设置详细
export function getSettingOnsiteFee(id) {
  return request({
    url: '/vanger/settingOnsiteFee/' + id,
    method: 'get'
  })
}

// 新增上门费设置
export function addSettingOnsiteFee(data) {
  return request({
    url: '/vanger/settingOnsiteFee',
    method: 'post',
    data: data
  })
}

// 修改上门费设置
export function updateSettingOnsiteFee(data) {
  return request({
    url: '/vanger/settingOnsiteFee',
    method: 'put',
    data: data
  })
}

// 删除上门费设置
export function delSettingOnsiteFee(id) {
  return request({
    url: '/vanger/settingOnsiteFee/' + id,
    method: 'delete'
  })
}
